<?php
/**
 * ルーティング設定モジュール
 */
require_once 'Zend/Controller/Front.php';
require_once 'Zend/Controller/Router/Route/Regex.php';

//	フロントコントローラーを取得
$controller = Zend_Controller_Front::getInstance();

//	ルーターを取得
$router = $controller->getRouter();

//	ルートの作成
$route = new Zend_Controller_Router_Route(
		':action/*',
		array(
				'controller' => 'index',
		)
);

//	ルートを追加
$router->addRoute('route1', $route);

$route2 = new Zend_Controller_Router_Route_Regex(
    '[a-f0-9]{32}',
    array(
        'controller' => 'index',
        'action' => 'show'
    )
);
$router->addRoute('route2',$route2);

$route3 = new Zend_Controller_Router_Route(
		'modify/:MODIFY'	,
		array(
				'controller' => 'index',
				'action' => 'input',
				'MODIFY' => '1',
		)
);
$router->addRoute('route３',$route3);

$route4 = new Zend_Controller_Router_Route(
		'error'	,
		array(
				'controller' => 'error',
				'action' => 'error',
		)
);
$router->addRoute('route4',$route4);

$route5 = new Zend_Controller_Router_Route(
		'conf'	,
		array(
				'controller' => 'index',
				'action' => 'auth',
		)
);
$router->addRoute('route5',$route5);


